import ts from 'typescript';

export default function(program: ts.Program, pluginOptions: {}) {
	return (ctx: ts.TransformationContext) => {
		return (sourceFile: ts.SourceFile) => {
			function visitor(node: ts.Node): ts.Node {
				// console.log(node.getText());
				if(ts.isImportDeclaration(node)){
					if(node.moduleSpecifier.getText().startsWith("@")){
						console.log(ts.isImportDeclaration(node));
						console.log(node.moduleSpecifier.getText());
					}
				}
				// if (ts.isCallExpression(node)) {
				//     return ts.createLiteral('call');
				// }
				
				return ts.visitEachChild(node, visitor, ctx);
			}
			return ts.visitEachChild(sourceFile, visitor, ctx);
		};
	};
}
